import { get, post, put } from '@/utils'

export const login = (formData: FormData) => {
  return post('/login', formData)
}

export const getCaptcha = () => {
  return get('/public/getCaptcha')
}

export const checkCaptcha = (msg: string) => {
  return post('/public/checkCaptcha', msg)
}

export const getUser = (data={}) => {
  return post('/user/getMe',data)
}

export const getMenu = (data={}) => {
  return post('/user/getMe',data)
}

export const sendEmail = (data={}) => {
  return put('/public/sendEmail', data)
}

export const register = (data={}) => {
  return post('/public/register', data)
}

